package com.cdpark.vo;

import java.util.Date;


/**
 * CDOrderViewVOId entity. @author MyEclipse Persistence Tools
 */

public class CDOrderViewVO  implements java.io.Serializable {


    // Fields    

     private Long cdQuantity;
     private Long cdid;
     private String singerName;
     private Long cdtypeId;
     private String cdname;
     private String language;
     private String company;
     private String releaseDate;
     private String addDate;
     private String songList;
     private String cdintroduction;
     private Double price;
     private Double discount;
     private Long stockQuantity;
     private String cdcover;
     private Integer isRecommand;
     private String remark1;
     private String remark2;
     private String remark3;
     private Double cdTotalPrice;


    // Constructors

    /** default constructor */
    public CDOrderViewVO() {
    }

	/** minimal constructor */
    public CDOrderViewVO(Long cdid) {
        this.cdid = cdid;
    }
    
    /** full constructor */
    public CDOrderViewVO(Long cdQuantity, Long cdid, String singerName, Long cdtypeId, String cdname, String language, String company, String releaseDate, String addDate, String songList, String cdintroduction, Double price, Double discount, Long stockQuantity, String cdcover, Integer isRecommand, String remark1, String remark2, String remark3, Double cdTotalPrice) {
        this.cdQuantity = cdQuantity;
        this.cdid = cdid;
        this.singerName = singerName;
        this.cdtypeId = cdtypeId;
        this.cdname = cdname;
        this.language = language;
        this.company = company;
        this.releaseDate = releaseDate;
        this.addDate = addDate;
        this.songList = songList;
        this.cdintroduction = cdintroduction;
        this.price = price;
        this.discount = discount;
        this.stockQuantity = stockQuantity;
        this.cdcover = cdcover;
        this.isRecommand = isRecommand;
        this.remark1 = remark1;
        this.remark2 = remark2;
        this.remark3 = remark3;
        this.cdTotalPrice = cdTotalPrice;
    }

   
    // Property accessors

    public Long getCdQuantity() {
        return this.cdQuantity;
    }
    
    public void setCdQuantity(Long cdQuantity) {
        this.cdQuantity = cdQuantity;
    }

    public Long getCdid() {
        return this.cdid;
    }
    
    public void setCdid(Long cdid) {
        this.cdid = cdid;
    }

    public String getSingerName() {
        return this.singerName;
    }
    
    public void setSingerName(String singerName) {
        this.singerName = singerName;
    }

    public Long getCdtypeId() {
        return this.cdtypeId;
    }
    
    public void setCdtypeId(Long cdtypeId) {
        this.cdtypeId = cdtypeId;
    }

    public String getCdname() {
        return this.cdname;
    }
    
    public void setCdname(String cdname) {
        this.cdname = cdname;
    }

    public String getLanguage() {
        return this.language;
    }
    
    public void setLanguage(String language) {
        this.language = language;
    }

    public String getCompany() {
        return this.company;
    }
    
    public void setCompany(String company) {
        this.company = company;
    }

    public String getReleaseDate() {
        return this.releaseDate;
    }
    
    public void setReleaseDate(String releaseDate) {
        this.releaseDate = releaseDate;
    }

    public String getAddDate() {
        return this.addDate;
    }
    
    public void setAddDate(String addDate) {
        this.addDate = addDate;
    }

    public String getSongList() {
        return this.songList;
    }
    
    public void setSongList(String songList) {
        this.songList = songList;
    }

    public String getCdintroduction() {
        return this.cdintroduction;
    }
    
    public void setCdintroduction(String cdintroduction) {
        this.cdintroduction = cdintroduction;
    }

    public Double getPrice() {
        return this.price;
    }
    
    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getDiscount() {
        return this.discount;
    }
    
    public void setDiscount(Double discount) {
        this.discount = discount;
    }

    public Long getStockQuantity() {
        return this.stockQuantity;
    }
    
    public void setStockQuantity(Long stockQuantity) {
        this.stockQuantity = stockQuantity;
    }

    public String getCdcover() {
        return this.cdcover;
    }
    
    public void setCdcover(String cdcover) {
        this.cdcover = cdcover;
    }

    public Integer getIsRecommand() {
        return this.isRecommand;
    }
    
    public void setIsRecommand(Integer isRecommand) {
        this.isRecommand = isRecommand;
    }

    public String getRemark1() {
        return this.remark1;
    }
    
    public void setRemark1(String remark1) {
        this.remark1 = remark1;
    }

    public String getRemark2() {
        return this.remark2;
    }
    
    public void setRemark2(String remark2) {
        this.remark2 = remark2;
    }

    public String getRemark3() {
        return this.remark3;
    }
    
    public void setRemark3(String remark3) {
        this.remark3 = remark3;
    }

    public Double getCdTotalPrice() {
        return this.cdTotalPrice;
    }
    
    public void setCdTotalPrice(Double cdTotalPrice) {
        this.cdTotalPrice = cdTotalPrice;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof CDOrderViewVO) ) return false;
		 CDOrderViewVO castOther = ( CDOrderViewVO ) other; 
         
		 return ( (this.getCdQuantity()==castOther.getCdQuantity()) || ( this.getCdQuantity()!=null && castOther.getCdQuantity()!=null && this.getCdQuantity().equals(castOther.getCdQuantity()) ) )
 && ( (this.getCdid()==castOther.getCdid()) || ( this.getCdid()!=null && castOther.getCdid()!=null && this.getCdid().equals(castOther.getCdid()) ) )
 && ( (this.getSingerName()==castOther.getSingerName()) || ( this.getSingerName()!=null && castOther.getSingerName()!=null && this.getSingerName().equals(castOther.getSingerName()) ) )
 && ( (this.getCdtypeId()==castOther.getCdtypeId()) || ( this.getCdtypeId()!=null && castOther.getCdtypeId()!=null && this.getCdtypeId().equals(castOther.getCdtypeId()) ) )
 && ( (this.getCdname()==castOther.getCdname()) || ( this.getCdname()!=null && castOther.getCdname()!=null && this.getCdname().equals(castOther.getCdname()) ) )
 && ( (this.getLanguage()==castOther.getLanguage()) || ( this.getLanguage()!=null && castOther.getLanguage()!=null && this.getLanguage().equals(castOther.getLanguage()) ) )
 && ( (this.getCompany()==castOther.getCompany()) || ( this.getCompany()!=null && castOther.getCompany()!=null && this.getCompany().equals(castOther.getCompany()) ) )
 && ( (this.getReleaseDate()==castOther.getReleaseDate()) || ( this.getReleaseDate()!=null && castOther.getReleaseDate()!=null && this.getReleaseDate().equals(castOther.getReleaseDate()) ) )
 && ( (this.getAddDate()==castOther.getAddDate()) || ( this.getAddDate()!=null && castOther.getAddDate()!=null && this.getAddDate().equals(castOther.getAddDate()) ) )
 && ( (this.getSongList()==castOther.getSongList()) || ( this.getSongList()!=null && castOther.getSongList()!=null && this.getSongList().equals(castOther.getSongList()) ) )
 && ( (this.getCdintroduction()==castOther.getCdintroduction()) || ( this.getCdintroduction()!=null && castOther.getCdintroduction()!=null && this.getCdintroduction().equals(castOther.getCdintroduction()) ) )
 && ( (this.getPrice()==castOther.getPrice()) || ( this.getPrice()!=null && castOther.getPrice()!=null && this.getPrice().equals(castOther.getPrice()) ) )
 && ( (this.getDiscount()==castOther.getDiscount()) || ( this.getDiscount()!=null && castOther.getDiscount()!=null && this.getDiscount().equals(castOther.getDiscount()) ) )
 && ( (this.getStockQuantity()==castOther.getStockQuantity()) || ( this.getStockQuantity()!=null && castOther.getStockQuantity()!=null && this.getStockQuantity().equals(castOther.getStockQuantity()) ) )
 && ( (this.getCdcover()==castOther.getCdcover()) || ( this.getCdcover()!=null && castOther.getCdcover()!=null && this.getCdcover().equals(castOther.getCdcover()) ) )
 && ( (this.getIsRecommand()==castOther.getIsRecommand()) || ( this.getIsRecommand()!=null && castOther.getIsRecommand()!=null && this.getIsRecommand().equals(castOther.getIsRecommand()) ) )
 && ( (this.getRemark1()==castOther.getRemark1()) || ( this.getRemark1()!=null && castOther.getRemark1()!=null && this.getRemark1().equals(castOther.getRemark1()) ) )
 && ( (this.getRemark2()==castOther.getRemark2()) || ( this.getRemark2()!=null && castOther.getRemark2()!=null && this.getRemark2().equals(castOther.getRemark2()) ) )
 && ( (this.getRemark3()==castOther.getRemark3()) || ( this.getRemark3()!=null && castOther.getRemark3()!=null && this.getRemark3().equals(castOther.getRemark3()) ) )
 && ( (this.getCdTotalPrice()==castOther.getCdTotalPrice()) || ( this.getCdTotalPrice()!=null && castOther.getCdTotalPrice()!=null && this.getCdTotalPrice().equals(castOther.getCdTotalPrice()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getCdQuantity() == null ? 0 : this.getCdQuantity().hashCode() );
         result = 37 * result + ( getCdid() == null ? 0 : this.getCdid().hashCode() );
         result = 37 * result + ( getSingerName() == null ? 0 : this.getSingerName().hashCode() );
         result = 37 * result + ( getCdtypeId() == null ? 0 : this.getCdtypeId().hashCode() );
         result = 37 * result + ( getCdname() == null ? 0 : this.getCdname().hashCode() );
         result = 37 * result + ( getLanguage() == null ? 0 : this.getLanguage().hashCode() );
         result = 37 * result + ( getCompany() == null ? 0 : this.getCompany().hashCode() );
         result = 37 * result + ( getReleaseDate() == null ? 0 : this.getReleaseDate().hashCode() );
         result = 37 * result + ( getAddDate() == null ? 0 : this.getAddDate().hashCode() );
         result = 37 * result + ( getSongList() == null ? 0 : this.getSongList().hashCode() );
         result = 37 * result + ( getCdintroduction() == null ? 0 : this.getCdintroduction().hashCode() );
         result = 37 * result + ( getPrice() == null ? 0 : this.getPrice().hashCode() );
         result = 37 * result + ( getDiscount() == null ? 0 : this.getDiscount().hashCode() );
         result = 37 * result + ( getStockQuantity() == null ? 0 : this.getStockQuantity().hashCode() );
         result = 37 * result + ( getCdcover() == null ? 0 : this.getCdcover().hashCode() );
         result = 37 * result + ( getIsRecommand() == null ? 0 : this.getIsRecommand().hashCode() );
         result = 37 * result + ( getRemark1() == null ? 0 : this.getRemark1().hashCode() );
         result = 37 * result + ( getRemark2() == null ? 0 : this.getRemark2().hashCode() );
         result = 37 * result + ( getRemark3() == null ? 0 : this.getRemark3().hashCode() );
         result = 37 * result + ( getCdTotalPrice() == null ? 0 : this.getCdTotalPrice().hashCode() );
         return result;
   }   





}